/*
 * DisplayStringImage.java
 * Created on December 24, 2007, 3:55 AM by Uru
 *
 * Holds a string with the name of a registered image and draws the image
 */

package MenuSystem;

import java.awt.*;
import javax.swing.*;
import ImageSystem.ImageRegistry;

public class DisplayStringImage implements SelfDrawing{
    protected String tag;
    
    //Creates a new instance of DisplayImage
    public DisplayStringImage(String name) {
        tag = name;
    }
    
    //draws the image
    public void draw(Graphics2D g, int mx, int my, JComponent screen){
        ImageRegistry.drawImage(tag,mx,my,g,screen);
    }
    
}
